package com.easyuse.top.crm.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Project: erp<br>
 * Description: 字典实体表<br>
 * Copyright (c) 2012<br>
 * All Rights Reserved.<br>
 * @author <a href="mailto:gly420@163.com">GuanLuYong</a><br>
 */
@Entity
@Table(name = "ERP_DICT", schema = "DEVA")
public class Dict {
	@Id
	@Column(name = "ID", nullable = false, updatable = false)
	protected Long id;
	
	@Column(name = "ADD_BY", length = 50, nullable = true)
	private String addBy;
	
	@Column(name = "ADD_DATE", nullable = true)
	@Temporal(TemporalType.TIMESTAMP)
	private Date addDate;
	
	@Column(name = "MOD_BY", length = 50, nullable = true)
	private String modBy;
	
	@Column(name = "MOD_DATE", nullable = true)
	@Temporal(TemporalType.TIMESTAMP)
	private Date modDate;
	
	@Column(name = "STATUS")
	private Long status;
	
	@Column(name = "REMARKS", nullable = true, length = 255)
	private String remarks;

	@Column(name = "CODE", length = 50)
	private String code;
	
	@Column(name = "NAME", length = 50)
	private String name;
	
	@Column(name = "VALUE", length = 200)
	private String value;
	
	@Column(name = "TYPE", length = 50)
	private String type;
	
	@Column(name = "PARENT_ID")
	private Long parentId;
	
	@Column(name = "SYS_ID")
	private Integer sysId;

	// Getter & Setter
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getSysId() {
		return sysId;
	}

	public void setSysId(Integer sysId) {
		this.sysId = sysId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAddBy() {
		return addBy;
	}

	public void setAddBy(String addBy) {
		this.addBy = addBy;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	public String getModBy() {
		return modBy;
	}

	public void setModBy(String modBy) {
		this.modBy = modBy;
	}

	public Date getModDate() {
		return modDate;
	}

	public void setModDate(Date modDate) {
		this.modDate = modDate;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

}
